home *** CD-ROM | disk | FTP | other *** search
/ Mission to McDonaldLand / Mission To McDonaldLand.iso / calnz.dxr / 00024_Script_smallCakeObj < prev    next >
Text File  |  1998-10-25  |  481b  |  25 lines

  1. property mychan
  2. on birth me,inchan
  3.   set mychan = inchan
  4.   append(the actorlist,me)
  5.   append(the scriptinstancelist of sprite mychan,me)
  6.   return me
  7. end
  8.  
  9. on kill me
  10.   deleteone(the actorlist,me)
  11. end
  12.  
  13. on mousedown
  14.   global cakeLayer
  15.   if the doubleclick then
  16.     set rollchan=rollover()
  17.     repeat with i in the objectlist of cakelayer
  18.       if the mychannel of i = rollchan then
  19.         kill(i)
  20.         return
  21.       end if
  22.     end repeat
  23.   end if
  24.   pass
  25. end